package com.deft.design.adapter.mq;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 内部订单MQ
 * @author Hide丶love
 * @date 2022/04/24
 **/
@Data
public class OrderMq {

    /**
     * 用户ID
     */
    private String uid;

    /**
     * 商品sku
     */
    private String sku;

    /**
     * 订单ID
     */
    private String orderId;

    /**
     * 下单时间
     */
    private LocalDateTime createOrderTime;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
